package com.cskaoyan.controller;

import com.cskaoyan.service.DashboardService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.DashboardVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DashboardController {

    @Autowired
    DashboardService dashboardService;

    /**
     * 功能:首页
     * 作者:whj
     */
    @RequestMapping("admin/dashboard")
    public BaseRespVo page(){
        DashboardVo dashboardVo = dashboardService.page();
        return BaseRespVo.ok(dashboardVo);
    }
}
